<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkTextView</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="TextWidgetObjects.html" title="多行文本编辑器">
<link rel="prev" href="gtk3-GtkTextTagTable.html" title="GtkTextTagTable">
<link rel="next" href="TreeWidgetObjects.html" title="树、列表和图标网格构件">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gtk3-GtkTextTagTable.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="TextWidgetObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="TreeWidgetObjects.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkTextView.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkTextView.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkTextView"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkTextView.top_of_page"></a>GtkTextView</span></h2>
<p>GtkTextView — Widget that displays a GtkTextBuffer</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkTextView.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView">GtkTextView</a>;
enum                <a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType">GtkTextWindowType</a>;
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-new" title="gtk_text_view_new ()">gtk_text_view_new</a>                   (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-new-with-buffer" title="gtk_text_view_new_with_buffer ()">gtk_text_view_new_with_buffer</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-buffer" title="gtk_text_view_set_buffer ()">gtk_text_view_set_buffer</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>);
<a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="returnvalue">GtkTextBuffer</span></a> *     <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-buffer" title="gtk_text_view_get_buffer ()">gtk_text_view_get_buffer</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-hadjustment" title="gtk_text_view_get_hadjustment ()">gtk_text_view_get_hadjustment</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-vadjustment" title="gtk_text_view_get_vadjustment ()">gtk_text_view_get_vadjustment</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-scroll-to-mark" title="gtk_text_view_scroll_to_mark ()">gtk_text_view_scroll_to_mark</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextMark.html#GtkTextMark" title="struct GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> within_margin</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_align</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xalign</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yalign</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-scroll-to-iter" title="gtk_text_view_scroll_to_iter ()">gtk_text_view_scroll_to_iter</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> within_margin</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_align</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xalign</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yalign</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-scroll-mark-onscreen" title="gtk_text_view_scroll_mark_onscreen ()">gtk_text_view_scroll_mark_onscreen</a>  (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextMark.html#GtkTextMark" title="struct GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-move-mark-onscreen" title="gtk_text_view_move_mark_onscreen ()">gtk_text_view_move_mark_onscreen</a>    (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextMark.html#GtkTextMark" title="struct GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-place-cursor-onscreen" title="gtk_text_view_place_cursor_onscreen ()">gtk_text_view_place_cursor_onscreen</a> (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-visible-rect" title="gtk_text_view_get_visible_rect ()">gtk_text_view_get_visible_rect</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *visible_rect</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-iter-location" title="gtk_text_view_get_iter_location ()">gtk_text_view_get_iter_location</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *location</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-cursor-locations" title="gtk_text_view_get_cursor_locations ()">gtk_text_view_get_cursor_locations</a>  (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *strong</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *weak</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-line-at-y" title="gtk_text_view_get_line_at_y ()">gtk_text_view_get_line_at_y</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *target_iter</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *line_top</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-line-yrange" title="gtk_text_view_get_line_yrange ()">gtk_text_view_get_line_yrange</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *height</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-iter-at-location" title="gtk_text_view_get_iter_at_location ()">gtk_text_view_get_iter_at_location</a>  (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-iter-at-position" title="gtk_text_view_get_iter_at_position ()">gtk_text_view_get_iter_at_position</a>  (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *trailing</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()">gtk_text_view_buffer_to_window_coords</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> buffer_x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> buffer_y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *window_x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *window_y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()">gtk_text_view_window_to_buffer_coords</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> window_x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> window_y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *buffer_x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *buffer_y</code></em>);
<a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-window" title="gtk_text_view_get_window ()">gtk_text_view_get_window</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>);
<a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="returnvalue">GtkTextWindowType</span></a>   <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-window-type" title="gtk_text_view_get_window_type ()">gtk_text_view_get_window_type</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()">gtk_text_view_set_border_window_size</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> type</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> size</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-border-window-size" title="gtk_text_view_get_border_window_size ()">gtk_text_view_get_border_window_size</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> type</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-forward-display-line" title="gtk_text_view_forward_display_line ()">gtk_text_view_forward_display_line</a>  (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-backward-display-line" title="gtk_text_view_backward_display_line ()">gtk_text_view_backward_display_line</a> (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-forward-display-line-end" title="gtk_text_view_forward_display_line_end ()">gtk_text_view_forward_display_line_end</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-backward-display-line-start" title="gtk_text_view_backward_display_line_start ()">gtk_text_view_backward_display_line_start</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-starts-display-line" title="gtk_text_view_starts_display_line ()">gtk_text_view_starts_display_line</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-move-visually" title="gtk_text_view_move_visually ()">gtk_text_view_move_visually</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> count</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-add-child-at-anchor" title="gtk_text_view_add_child_at_anchor ()">gtk_text_view_add_child_at_anchor</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextChildAnchor" title="struct GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);
struct              <a class="link" href="gtk3-GtkTextView.html#GtkTextChildAnchor" title="struct GtkTextChildAnchor">GtkTextChildAnchor</a>;
<a class="link" href="gtk3-GtkTextView.html#GtkTextChildAnchor" title="struct GtkTextChildAnchor"><span class="returnvalue">GtkTextChildAnchor</span></a> * <a class="link" href="gtk3-GtkTextView.html#gtk-text-child-anchor-new" title="gtk_text_child_anchor_new ()">gtk_text_child_anchor_new</a>          (<em class="parameter"><code><span class="type">void</span></code></em>);
<a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="gtk3-GtkTextView.html#gtk-text-child-anchor-get-widgets" title="gtk_text_child_anchor_get_widgets ()">gtk_text_child_anchor_get_widgets</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextChildAnchor" title="struct GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkTextView.html#gtk-text-child-anchor-get-deleted" title="gtk_text_child_anchor_get_deleted ()">gtk_text_child_anchor_get_deleted</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextChildAnchor" title="struct GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-add-child-in-window" title="gtk_text_view_add_child_in_window ()">gtk_text_view_add_child_in_window</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> which_window</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpos</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypos</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-move-child" title="gtk_text_view_move_child ()">gtk_text_view_move_child</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpos</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypos</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-wrap-mode" title="gtk_text_view_set_wrap_mode ()">gtk_text_view_set_wrap_mode</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a> wrap_mode</code></em>);
<a class="link" href="gtk3-GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="returnvalue">GtkWrapMode</span></a>         <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-wrap-mode" title="gtk_text_view_get_wrap_mode ()">gtk_text_view_get_wrap_mode</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-editable" title="gtk_text_view_set_editable ()">gtk_text_view_set_editable</a>          (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-editable" title="gtk_text_view_get_editable ()">gtk_text_view_get_editable</a>          (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-cursor-visible" title="gtk_text_view_set_cursor_visible ()">gtk_text_view_set_cursor_visible</a>    (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-cursor-visible" title="gtk_text_view_get_cursor_visible ()">gtk_text_view_get_cursor_visible</a>    (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-overwrite" title="gtk_text_view_set_overwrite ()">gtk_text_view_set_overwrite</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> overwrite</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-overwrite" title="gtk_text_view_get_overwrite ()">gtk_text_view_get_overwrite</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-pixels-above-lines" title="gtk_text_view_set_pixels_above_lines ()">gtk_text_view_set_pixels_above_lines</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_above_lines</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-pixels-above-lines" title="gtk_text_view_get_pixels_above_lines ()">gtk_text_view_get_pixels_above_lines</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-pixels-below-lines" title="gtk_text_view_set_pixels_below_lines ()">gtk_text_view_set_pixels_below_lines</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_below_lines</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-pixels-below-lines" title="gtk_text_view_get_pixels_below_lines ()">gtk_text_view_get_pixels_below_lines</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-pixels-inside-wrap" title="gtk_text_view_set_pixels_inside_wrap ()">gtk_text_view_set_pixels_inside_wrap</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_inside_wrap</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-pixels-inside-wrap" title="gtk_text_view_get_pixels_inside_wrap ()">gtk_text_view_get_pixels_inside_wrap</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-justification" title="gtk_text_view_set_justification ()">gtk_text_view_set_justification</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="type">GtkJustification</span></a> justification</code></em>);
<a class="link" href="gtk3-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="returnvalue">GtkJustification</span></a>    <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-justification" title="gtk_text_view_get_justification ()">gtk_text_view_get_justification</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-left-margin" title="gtk_text_view_set_left_margin ()">gtk_text_view_set_left_margin</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> left_margin</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-left-margin" title="gtk_text_view_get_left_margin ()">gtk_text_view_get_left_margin</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-right-margin" title="gtk_text_view_set_right_margin ()">gtk_text_view_set_right_margin</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> right_margin</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-right-margin" title="gtk_text_view_get_right_margin ()">gtk_text_view_get_right_margin</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-indent" title="gtk_text_view_set_indent ()">gtk_text_view_set_indent</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> indent</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-indent" title="gtk_text_view_get_indent ()">gtk_text_view_get_indent</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-tabs" title="gtk_text_view_set_tabs ()">gtk_text_view_set_tabs</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../pango/pango-Tab-Stops.html#PangoTabArray"><span class="type">PangoTabArray</span></a> *tabs</code></em>);
<a href="../pango/pango-Tab-Stops.html#PangoTabArray"><span class="returnvalue">PangoTabArray</span></a> *     <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-tabs" title="gtk_text_view_get_tabs ()">gtk_text_view_get_tabs</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-accepts-tab" title="gtk_text_view_set_accepts_tab ()">gtk_text_view_set_accepts_tab</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> accepts_tab</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-accepts-tab" title="gtk_text_view_get_accepts_tab ()">gtk_text_view_get_accepts_tab</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<a class="link" href="gtk3-GtkTextTag.html#GtkTextAttributes" title="struct GtkTextAttributes"><span class="returnvalue">GtkTextAttributes</span></a> * <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-default-attributes" title="gtk_text_view_get_default_attributes ()">gtk_text_view_get_default_attributes</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-im-context-filter-keypress" title="gtk_text_view_im_context_filter_keypress ()">gtk_text_view_im_context_filter_keypress</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-reset-im-context" title="gtk_text_view_reset_im_context ()">gtk_text_view_reset_im_context</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
#define             <a class="link" href="gtk3-GtkTextView.html#GTK-TEXT-VIEW-PRIORITY-VALIDATE:CAPS" title="GTK_TEXT_VIEW_PRIORITY_VALIDATE">GTK_TEXT_VIEW_PRIORITY_VALIDATE</a>
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkTextView.description"></a><h2>Description</h2>
<p>
You may wish to begin by reading the <a class="link" href="TextWidget.html" title="Text Widget Overview">text widget
conceptual overview</a> which gives an overview of all the objects and data
types related to the text widget and how they work together.
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkTextView.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkTextView"></a><h3>struct GtkTextView</h3>
<pre class="programlisting">struct GtkTextView {
  GtkContainer parent_instance;

  GtkTextViewPrivate *priv;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextWindowType"></a><h3>enum GtkTextWindowType</h3>
<pre class="programlisting">typedef enum {
  GTK_TEXT_WINDOW_PRIVATE,
  GTK_TEXT_WINDOW_WIDGET,
  GTK_TEXT_WINDOW_TEXT,
  GTK_TEXT_WINDOW_LEFT,
  GTK_TEXT_WINDOW_RIGHT,
  GTK_TEXT_WINDOW_TOP,
  GTK_TEXT_WINDOW_BOTTOM
} GtkTextWindowType;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-new"></a><h3>gtk_text_view_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_text_view_new                   (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>. If you don't call <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-buffer" title="gtk_text_view_set_buffer ()"><code class="function">gtk_text_view_set_buffer()</code></a>
before using the text view, an empty default buffer will be created
for you. Get the buffer with <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-buffer" title="gtk_text_view_get_buffer ()"><code class="function">gtk_text_view_get_buffer()</code></a>. If you want
to specify your own buffer, consider <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-new-with-buffer" title="gtk_text_view_new_with_buffer ()"><code class="function">gtk_text_view_new_with_buffer()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-new-with-buffer"></a><h3>gtk_text_view_new_with_buffer ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_text_view_new_with_buffer       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>);</pre>
<p>
Creates a new <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> widget displaying the buffer
<em class="parameter"><code>buffer</code></em>. One buffer can be shared among many widgets.
<em class="parameter"><code>buffer</code></em> may be <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to create a default buffer, in which case
this function is equivalent to <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-new" title="gtk_text_view_new ()"><code class="function">gtk_text_view_new()</code></a>. The
text view adds its own reference count to the buffer; it does not
take over an existing reference.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-buffer"></a><h3>gtk_text_view_set_buffer ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_buffer            (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>);</pre>
<p>
Sets <em class="parameter"><code>buffer</code></em> as the buffer being displayed by <em class="parameter"><code>text_view</code></em>. The previous
buffer displayed by the text view is unreferenced, and a reference is
added to <em class="parameter"><code>buffer</code></em>. If you owned a reference to <em class="parameter"><code>buffer</code></em> before passing it
to this function, you must remove that reference yourself; <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
will not "adopt" it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-buffer"></a><h3>gtk_text_view_get_buffer ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="returnvalue">GtkTextBuffer</span></a> *     gtk_text_view_get_buffer            (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Returns the <a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> being displayed by this text view.
The reference count on the buffer is not incremented; the caller
of this function won't own a new reference.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-hadjustment"></a><h3>gtk_text_view_get_hadjustment ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     gtk_text_view_get_hadjustment       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_text_view_get_hadjustment</code> has been deprecated since version 3.0 and should not be used in newly-written code. Use <a class="link" href="gtk3-GtkScrollable.html#gtk-scrollable-get-hadjustment" title="gtk_scrollable_get_hadjustment ()"><code class="function">gtk_scrollable_get_hadjustment()</code></a></p>
</div>
<p>
Gets the horizontal-scrolling <a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>pointer to the horizontal <a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-vadjustment"></a><h3>gtk_text_view_get_vadjustment ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     gtk_text_view_get_vadjustment       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_text_view_get_vadjustment</code> has been deprecated since version 3.0 and should not be used in newly-written code. Use <a class="link" href="gtk3-GtkScrollable.html#gtk-scrollable-get-vadjustment" title="gtk_scrollable_get_vadjustment ()"><code class="function">gtk_scrollable_get_vadjustment()</code></a></p>
</div>
<p>
Gets the vertical-scrolling <a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>pointer to the vertical <a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-scroll-to-mark"></a><h3>gtk_text_view_scroll_to_mark ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_scroll_to_mark        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextMark.html#GtkTextMark" title="struct GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> within_margin</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_align</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xalign</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yalign</code></em>);</pre>
<p>
Scrolls <em class="parameter"><code>text_view</code></em> so that <em class="parameter"><code>mark</code></em> is on the screen in the position
indicated by <em class="parameter"><code>xalign</code></em> and <em class="parameter"><code>yalign</code></em>. An alignment of 0.0 indicates
left or top, 1.0 indicates right or bottom, 0.5 means center. 
If <em class="parameter"><code>use_align</code></em> is <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, the text scrolls the minimal distance to 
get the mark onscreen, possibly not scrolling at all. The effective 
screen for purposes of this function is reduced by a margin of size 
<em class="parameter"><code>within_margin</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mark</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextMark.html#GtkTextMark" title="struct GtkTextMark"><span class="type">GtkTextMark</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>within_margin</code></em> :</span></p></td>
<td>margin as a [0.0,0.5) fraction of screen size</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>use_align</code></em> :</span></p></td>
<td>whether to use alignment arguments (if <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, just
get the mark onscreen)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xalign</code></em> :</span></p></td>
<td>horizontal alignment of mark within visible area</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>yalign</code></em> :</span></p></td>
<td>vertical alignment of mark within visible area</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-scroll-to-iter"></a><h3>gtk_text_view_scroll_to_iter ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_scroll_to_iter        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> within_margin</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_align</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xalign</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yalign</code></em>);</pre>
<p>
Scrolls <em class="parameter"><code>text_view</code></em> so that <em class="parameter"><code>iter</code></em> is on the screen in the position
indicated by <em class="parameter"><code>xalign</code></em> and <em class="parameter"><code>yalign</code></em>. An alignment of 0.0 indicates
left or top, 1.0 indicates right or bottom, 0.5 means center. 
If <em class="parameter"><code>use_align</code></em> is <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, the text scrolls the minimal distance to 
get the mark onscreen, possibly not scrolling at all. The effective 
screen for purposes of this function is reduced by a margin of size 
<em class="parameter"><code>within_margin</code></em>.
</p>
<p>
Note that this function uses the currently-computed height of the
lines in the text buffer. Line heights are computed in an idle 
handler; so this function may not have the desired effect if it's 
called before the height computations. To avoid oddness, consider 
using <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-scroll-to-mark" title="gtk_text_view_scroll_to_mark ()"><code class="function">gtk_text_view_scroll_to_mark()</code></a> which saves a point to be 
scrolled to after line validation.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>within_margin</code></em> :</span></p></td>
<td>margin as a [0.0,0.5) fraction of screen size</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>use_align</code></em> :</span></p></td>
<td>whether to use alignment arguments (if <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>,
just get the mark onscreen)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xalign</code></em> :</span></p></td>
<td>horizontal alignment of mark within visible area</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>yalign</code></em> :</span></p></td>
<td>vertical alignment of mark within visible area</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if scrolling occurred</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-scroll-mark-onscreen"></a><h3>gtk_text_view_scroll_mark_onscreen ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_scroll_mark_onscreen  (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextMark.html#GtkTextMark" title="struct GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>);</pre>
<p>
Scrolls <em class="parameter"><code>text_view</code></em> the minimum distance such that <em class="parameter"><code>mark</code></em> is contained
within the visible area of the widget.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mark</code></em> :</span></p></td>
<td>a mark in the buffer for <em class="parameter"><code>text_view</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-move-mark-onscreen"></a><h3>gtk_text_view_move_mark_onscreen ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_move_mark_onscreen    (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextMark.html#GtkTextMark" title="struct GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>);</pre>
<p>
Moves a mark within the buffer so that it's
located within the currently-visible text area.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mark</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextMark.html#GtkTextMark" title="struct GtkTextMark"><span class="type">GtkTextMark</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the mark moved (wasn't already onscreen)</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-place-cursor-onscreen"></a><h3>gtk_text_view_place_cursor_onscreen ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_place_cursor_onscreen (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Moves the cursor to the currently visible region of the
buffer, it it isn't there already.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the cursor had to be moved.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-visible-rect"></a><h3>gtk_text_view_get_visible_rect ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_visible_rect      (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *visible_rect</code></em>);</pre>
<p>
Fills <em class="parameter"><code>visible_rect</code></em> with the currently-visible
region of the buffer, in buffer coordinates. Convert to window coordinates
with <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>visible_rect</code></em> :</span></p></td>
<td>rectangle to fill. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-iter-location"></a><h3>gtk_text_view_get_iter_location ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_iter_location     (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *location</code></em>);</pre>
<p>
Gets a rectangle which roughly contains the character at <em class="parameter"><code>iter</code></em>.
The rectangle position is in buffer coordinates; use
<a class="link" href="gtk3-GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a> to convert these
coordinates to coordinates for one of the windows in the text view.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>location</code></em> :</span></p></td>
<td>bounds of the character at <em class="parameter"><code>iter</code></em>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-cursor-locations"></a><h3>gtk_text_view_get_cursor_locations ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_cursor_locations  (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *strong</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *weak</code></em>);</pre>
<p>
Given an <em class="parameter"><code>iter</code></em> within a text layout, determine the positions of the
strong and weak cursors if the insertion point is at that
iterator. The position of each cursor is stored as a zero-width
rectangle. The strong cursor location is the location where
characters of the directionality equal to the base direction of the
paragraph are inserted.  The weak cursor location is the location
where characters of the directionality opposite to the base
direction of the paragraph are inserted.
</p>
<p>
If <em class="parameter"><code>iter</code></em> is <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the actual cursor position is used.
</p>
<p>
Note that if <em class="parameter"><code>iter</code></em> happens to be the actual cursor position, and
there is currently an IM preedit sequence being entered, the
returned locations will be adjusted to account for the preedit
cursor's offset within the preedit sequence.
</p>
<p>
The rectangle position is in buffer coordinates; use
<a class="link" href="gtk3-GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a> to convert these
coordinates to coordinates for one of the windows in the text view.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>strong</code></em> :</span></p></td>
<td>location to store the strong
cursor position (may be <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>). <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>weak</code></em> :</span></p></td>
<td>location to store the weak
cursor position (may be <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>). <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-line-at-y"></a><h3>gtk_text_view_get_line_at_y ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_line_at_y         (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *target_iter</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *line_top</code></em>);</pre>
<p>
Gets the <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> at the start of the line containing
the coordinate <em class="parameter"><code>y</code></em>. <em class="parameter"><code>y</code></em> is in buffer coordinates, convert from
window coordinates with <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()"><code class="function">gtk_text_view_window_to_buffer_coords()</code></a>.
If non-<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, <em class="parameter"><code>line_top</code></em> will be filled with the coordinate of the top
edge of the line.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>target_iter</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>a y coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>line_top</code></em> :</span></p></td>
<td>return location for top coordinate of the line. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-line-yrange"></a><h3>gtk_text_view_get_line_yrange ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_line_yrange       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *height</code></em>);</pre>
<p>
Gets the y coordinate of the top of the line containing <em class="parameter"><code>iter</code></em>,
and the height of the line. The coordinate is a buffer coordinate;
convert to window coordinates with <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>return location for a y coordinate. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>return location for a height. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-iter-at-location"></a><h3>gtk_text_view_get_iter_at_location ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_iter_at_location  (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);</pre>
<p>
Retrieves the iterator at buffer coordinates <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>. Buffer
coordinates are coordinates for the entire buffer, not just the
currently-displayed portion.  If you have coordinates from an
event, you have to convert those to buffer coordinates with
<a class="link" href="gtk3-GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()"><code class="function">gtk_text_view_window_to_buffer_coords()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>x position, in buffer coordinates</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>y position, in buffer coordinates</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-iter-at-position"></a><h3>gtk_text_view_get_iter_at_position ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_iter_at_position  (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *trailing</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);</pre>
<p>
Retrieves the iterator pointing to the character at buffer 
coordinates <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>. Buffer coordinates are coordinates for 
the entire buffer, not just the currently-displayed portion.  
If you have coordinates from an event, you have to convert 
those to buffer coordinates with 
<a class="link" href="gtk3-GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()"><code class="function">gtk_text_view_window_to_buffer_coords()</code></a>.
</p>
<p>
Note that this is different from <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-get-iter-at-location" title="gtk_text_view_get_iter_at_location ()"><code class="function">gtk_text_view_get_iter_at_location()</code></a>,
which returns cursor locations, i.e. positions <span class="emphasis"><em>between</em></span>
characters.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>trailing</code></em> :</span></p></td>
<td>if non-<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, location to store an integer indicating where
in the grapheme the user clicked. It will either be
zero, or the number of characters in the grapheme.
0 represents the trailing edge of the grapheme. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>x position, in buffer coordinates</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>y position, in buffer coordinates</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-buffer-to-window-coords"></a><h3>gtk_text_view_buffer_to_window_coords ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_buffer_to_window_coords
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> buffer_x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> buffer_y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *window_x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *window_y</code></em>);</pre>
<p>
Converts coordinate (<em class="parameter"><code>buffer_x</code></em>, <em class="parameter"><code>buffer_y</code></em>) to coordinates for the window
<em class="parameter"><code>win</code></em>, and stores the result in (<em class="parameter"><code>window_x</code></em>, <em class="parameter"><code>window_y</code></em>). 
</p>
<p>
Note that you can't convert coordinates for a nonexisting window (see 
<a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>win</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> except <span class="type">GTK_TEXT_WINDOW_PRIVATE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_x</code></em> :</span></p></td>
<td>buffer x coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_y</code></em> :</span></p></td>
<td>buffer y coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window_x</code></em> :</span></p></td>
<td>window x coordinate return location or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window_y</code></em> :</span></p></td>
<td>window y coordinate return location or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-window-to-buffer-coords"></a><h3>gtk_text_view_window_to_buffer_coords ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_window_to_buffer_coords
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> window_x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> window_y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *buffer_x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *buffer_y</code></em>);</pre>
<p>
Converts coordinates on the window identified by <em class="parameter"><code>win</code></em> to buffer
coordinates, storing the result in (<em class="parameter"><code>buffer_x</code></em>,<em class="parameter"><code>buffer_y</code></em>).
</p>
<p>
Note that you can't convert coordinates for a nonexisting window (see 
<a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>win</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> except <span class="type">GTK_TEXT_WINDOW_PRIVATE</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window_x</code></em> :</span></p></td>
<td>window x coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window_y</code></em> :</span></p></td>
<td>window y coordinate</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_x</code></em> :</span></p></td>
<td>buffer x coordinate return location or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>buffer_y</code></em> :</span></p></td>
<td>buffer y coordinate return location or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-window"></a><h3>gtk_text_view_get_window ()</h3>
<pre class="programlisting"><a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         gtk_text_view_get_window            (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>);</pre>
<p>
Retrieves the <a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> corresponding to an area of the text view;
possible windows include the overall widget window, child windows
on the left, right, top, bottom, and the window that displays the
text buffer. Windows are <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> and nonexistent if their width or
height is 0, and are nonexistent before the widget has been
realized.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>win</code></em> :</span></p></td>
<td>window to get</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-window-type"></a><h3>gtk_text_view_get_window_type ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="returnvalue">GtkTextWindowType</span></a>   gtk_text_view_get_window_type       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>);</pre>
<p>
Usually used to find out which window an event corresponds to.
If you connect to an event signal on <em class="parameter"><code>text_view</code></em>, this function
should be called on <code class="literal">event-&gt;window</code> to
see which window it was.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
<td>a window type</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the window type.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-border-window-size"></a><h3>gtk_text_view_set_border_window_size ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_border_window_size
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> type</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> size</code></em>);</pre>
<p>
Sets the width of <code class="literal">GTK_TEXT_WINDOW_LEFT</code> or <code class="literal">GTK_TEXT_WINDOW_RIGHT</code>,
or the height of <code class="literal">GTK_TEXT_WINDOW_TOP</code> or <code class="literal">GTK_TEXT_WINDOW_BOTTOM</code>.
Automatically destroys the corresponding window if the size is set
to 0, and creates the window if the size is set to non-zero.  This
function can only be used for the "border windows," it doesn't work
with <span class="type">GTK_TEXT_WINDOW_WIDGET</span>, <span class="type">GTK_TEXT_WINDOW_TEXT</span>, or
<span class="type">GTK_TEXT_WINDOW_PRIVATE</span>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>window to affect</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>width or height of the window</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-border-window-size"></a><h3>gtk_text_view_get_border_window_size ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_border_window_size
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> type</code></em>);</pre>
<p>
Gets the width of the specified border window. See
<a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>window to return size from</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>width of window</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-forward-display-line"></a><h3>gtk_text_view_forward_display_line ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_forward_display_line  (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
<p>
Moves the given <em class="parameter"><code>iter</code></em> forward by one display (wrapped) line.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view's width; paragraphs are the same in all
views, since they depend on the contents of the <a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>iter</code></em> was moved and is not on the end iterator</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-backward-display-line"></a><h3>gtk_text_view_backward_display_line ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_backward_display_line (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
<p>
Moves the given <em class="parameter"><code>iter</code></em> backward by one display (wrapped) line.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view's width; paragraphs are the same in all
views, since they depend on the contents of the <a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>iter</code></em> was moved and is not on the end iterator</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-forward-display-line-end"></a><h3>gtk_text_view_forward_display_line_end ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_forward_display_line_end
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
<p>
Moves the given <em class="parameter"><code>iter</code></em> forward to the next display line end.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view's width; paragraphs are the same in all
views, since they depend on the contents of the <a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>iter</code></em> was moved and is not on the end iterator</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-backward-display-line-start"></a><h3>gtk_text_view_backward_display_line_start ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_backward_display_line_start
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
<p>
Moves the given <em class="parameter"><code>iter</code></em> backward to the next display line start.
A display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view's width; paragraphs are the same in all
views, since they depend on the contents of the <a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>iter</code></em> was moved and is not on the end iterator</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-starts-display-line"></a><h3>gtk_text_view_starts_display_line ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_starts_display_line   (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
<p>
Determines whether <em class="parameter"><code>iter</code></em> is at the start of a display line.
See <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-forward-display-line" title="gtk_text_view_forward_display_line ()"><code class="function">gtk_text_view_forward_display_line()</code></a> for an explanation of
display lines vs. paragraphs.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>iter</code></em> begins a wrapped line</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-move-visually"></a><h3>gtk_text_view_move_visually ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_move_visually         (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> count</code></em>);</pre>
<p>
Move the iterator a given number of characters visually, treating
it as the strong cursor position. If <em class="parameter"><code>count</code></em> is positive, then the
new strong cursor position will be <em class="parameter"><code>count</code></em> positions to the right of
the old cursor position. If <em class="parameter"><code>count</code></em> is negative then the new strong
cursor position will be <em class="parameter"><code>count</code></em> positions to the left of the old
cursor position.
</p>
<p>
In the presence of bi-directional text, the correspondence
between logical and visual order will depend on the direction
of the current run, and there may be jumps when the cursor
is moved off of the end of a run.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
<td>number of characters to move (negative moves left,
positive moves right)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>iter</code></em> moved and is not on the end iterator</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-add-child-at-anchor"></a><h3>gtk_text_view_add_child_at_anchor ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_add_child_at_anchor   (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextChildAnchor" title="struct GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);</pre>
<p>
Adds a child widget in the text buffer, at the given <em class="parameter"><code>anchor</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>anchor</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextChildAnchor" title="struct GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> in the <a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> for <em class="parameter"><code>text_view</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="GtkTextChildAnchor"></a><h3>struct GtkTextChildAnchor</h3>
<pre class="programlisting">struct GtkTextChildAnchor {
  GObject parent_instance;
};
</pre>
<p>
A <a class="link" href="gtk3-GtkTextView.html#GtkTextChildAnchor" title="struct GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> is a spot in the buffer where child widgets can
be "anchored" (inserted inline, as if they were characters). The anchor
can have multiple widgets anchored, to allow for multiple views.
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-child-anchor-new"></a><h3>gtk_text_child_anchor_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkTextView.html#GtkTextChildAnchor" title="struct GtkTextChildAnchor"><span class="returnvalue">GtkTextChildAnchor</span></a> * gtk_text_child_anchor_new          (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new <a class="link" href="gtk3-GtkTextView.html#GtkTextChildAnchor" title="struct GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>. Usually you would then insert
it into a <a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> with <a class="link" href="gtk3-GtkTextBuffer.html#gtk-text-buffer-insert-child-anchor" title="gtk_text_buffer_insert_child_anchor ()"><code class="function">gtk_text_buffer_insert_child_anchor()</code></a>.
To perform the creation and insertion in one step, use the
convenience function <a class="link" href="gtk3-GtkTextBuffer.html#gtk-text-buffer-create-child-anchor" title="gtk_text_buffer_create_child_anchor ()"><code class="function">gtk_text_buffer_create_child_anchor()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gtk3-GtkTextView.html#GtkTextChildAnchor" title="struct GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-child-anchor-get-widgets"></a><h3>gtk_text_child_anchor_get_widgets ()</h3>
<pre class="programlisting"><a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             gtk_text_child_anchor_get_widgets   (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextChildAnchor" title="struct GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);</pre>
<p>
Gets a list of all widgets anchored at this child anchor.
The returned list should be freed with <a href="../glib/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>anchor</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextChildAnchor" title="struct GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>list of widgets anchored at <em class="parameter"><code>anchor</code></em>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GtkWidget][<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-child-anchor-get-deleted"></a><h3>gtk_text_child_anchor_get_deleted ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_child_anchor_get_deleted   (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextChildAnchor" title="struct GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);</pre>
<p>
Determines whether a child anchor has been deleted from
the buffer. Keep in mind that the child anchor will be
unreferenced when removed from the buffer, so you need to
hold your own reference (with <a href="../gobject/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a>) if you plan
to use this function — otherwise all deleted child anchors
will also be finalized.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>anchor</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextChildAnchor" title="struct GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the child anchor has been deleted from its buffer</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-add-child-in-window"></a><h3>gtk_text_view_add_child_in_window ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_add_child_in_window   (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> which_window</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpos</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypos</code></em>);</pre>
<p>
Adds a child at fixed coordinates in one of the text widget's
windows.
</p>
<p>
The window must have nonzero size (see
<a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>). Note that the child
coordinates are given relative to the <a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> in question, and
that these coordinates have no sane relationship to scrolling. When
placing a child in <span class="type">GTK_TEXT_WINDOW_WIDGET</span>, scrolling is
irrelevant, the child floats above all scrollable areas. But when
placing a child in one of the scrollable windows (border windows or
text window), you'll need to compute the child's correct position
in buffer coordinates any time scrolling occurs or buffer changes
occur, and then call <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-move-child" title="gtk_text_view_move_child ()"><code class="function">gtk_text_view_move_child()</code></a> to update the
child's position.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>which_window</code></em> :</span></p></td>
<td>which window the child should appear in</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xpos</code></em> :</span></p></td>
<td>X position of child in window coordinates</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ypos</code></em> :</span></p></td>
<td>Y position of child in window coordinates</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-move-child"></a><h3>gtk_text_view_move_child ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_move_child            (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpos</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypos</code></em>);</pre>
<p>
Updates the position of a child, as for <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-add-child-in-window" title="gtk_text_view_add_child_in_window ()"><code class="function">gtk_text_view_add_child_in_window()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>child widget already added to the text view</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xpos</code></em> :</span></p></td>
<td>new X position in window coordinates</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ypos</code></em> :</span></p></td>
<td>new Y position in window coordinates</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-wrap-mode"></a><h3>gtk_text_view_set_wrap_mode ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_wrap_mode         (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a> wrap_mode</code></em>);</pre>
<p>
Sets the line wrapping for the view.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>wrap_mode</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-wrap-mode"></a><h3>gtk_text_view_get_wrap_mode ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="returnvalue">GtkWrapMode</span></a>         gtk_text_view_get_wrap_mode         (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the line wrapping for the view.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the line wrap setting</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-editable"></a><h3>gtk_text_view_set_editable ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_editable          (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre>
<p>
Sets the default editability of the <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>. You can override
this default setting with tags in the buffer, using the "editable"
attribute of tags.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
<td>whether it's editable</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-editable"></a><h3>gtk_text_view_get_editable ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_get_editable          (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Returns the default editability of the <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>. Tags in the
buffer may override this setting for some ranges of text.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether text is editable by default</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-cursor-visible"></a><h3>gtk_text_view_set_cursor_visible ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_cursor_visible    (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre>
<p>
Toggles whether the insertion point is displayed. A buffer with no editable
text probably shouldn't have a visible cursor, so you may want to turn
the cursor off.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
<td>whether to show the insertion cursor</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-cursor-visible"></a><h3>gtk_text_view_get_cursor_visible ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_get_cursor_visible    (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Find out whether the cursor is being displayed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether the insertion mark is visible</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-overwrite"></a><h3>gtk_text_view_set_overwrite ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_overwrite         (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> overwrite</code></em>);</pre>
<p>
Changes the <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> overwrite mode.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>overwrite</code></em> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to turn on overwrite mode, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> to turn it off</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-overwrite"></a><h3>gtk_text_view_get_overwrite ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_get_overwrite         (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Returns whether the <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> is in overwrite mode or not.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether <em class="parameter"><code>text_view</code></em> is in overwrite mode or not.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-pixels-above-lines"></a><h3>gtk_text_view_set_pixels_above_lines ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_pixels_above_lines
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_above_lines</code></em>);</pre>
<p>
Sets the default number of blank pixels above paragraphs in <em class="parameter"><code>text_view</code></em>.
Tags in the buffer for <em class="parameter"><code>text_view</code></em> may override the defaults.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixels_above_lines</code></em> :</span></p></td>
<td>pixels above paragraphs</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-pixels-above-lines"></a><h3>gtk_text_view_get_pixels_above_lines ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_pixels_above_lines
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the default number of pixels to put above paragraphs.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>default number of pixels above paragraphs</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-pixels-below-lines"></a><h3>gtk_text_view_set_pixels_below_lines ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_pixels_below_lines
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_below_lines</code></em>);</pre>
<p>
Sets the default number of pixels of blank space
to put below paragraphs in <em class="parameter"><code>text_view</code></em>. May be overridden
by tags applied to <em class="parameter"><code>text_view</code></em>'s buffer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixels_below_lines</code></em> :</span></p></td>
<td>pixels below paragraphs</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-pixels-below-lines"></a><h3>gtk_text_view_get_pixels_below_lines ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_pixels_below_lines
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the value set by <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-pixels-below-lines" title="gtk_text_view_set_pixels_below_lines ()"><code class="function">gtk_text_view_set_pixels_below_lines()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>default number of blank pixels below paragraphs</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-pixels-inside-wrap"></a><h3>gtk_text_view_set_pixels_inside_wrap ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_pixels_inside_wrap
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_inside_wrap</code></em>);</pre>
<p>
Sets the default number of pixels of blank space to leave between
display/wrapped lines within a paragraph. May be overridden by
tags in <em class="parameter"><code>text_view</code></em>'s buffer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixels_inside_wrap</code></em> :</span></p></td>
<td>default number of pixels between wrapped lines</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-pixels-inside-wrap"></a><h3>gtk_text_view_get_pixels_inside_wrap ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_pixels_inside_wrap
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the value set by <a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-pixels-inside-wrap" title="gtk_text_view_set_pixels_inside_wrap ()"><code class="function">gtk_text_view_set_pixels_inside_wrap()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>default number of pixels of blank space between wrapped lines</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-justification"></a><h3>gtk_text_view_set_justification ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_justification     (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="type">GtkJustification</span></a> justification</code></em>);</pre>
<p>
Sets the default justification of text in <em class="parameter"><code>text_view</code></em>.
Tags in the view's buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>justification</code></em> :</span></p></td>
<td>justification</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-justification"></a><h3>gtk_text_view_get_justification ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="returnvalue">GtkJustification</span></a>    gtk_text_view_get_justification     (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the default justification of paragraphs in <em class="parameter"><code>text_view</code></em>.
Tags in the buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>default justification</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-left-margin"></a><h3>gtk_text_view_set_left_margin ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_left_margin       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> left_margin</code></em>);</pre>
<p>
Sets the default left margin for text in <em class="parameter"><code>text_view</code></em>.
Tags in the buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>left_margin</code></em> :</span></p></td>
<td>left margin in pixels</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-left-margin"></a><h3>gtk_text_view_get_left_margin ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_left_margin       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the default left margin size of paragraphs in the <em class="parameter"><code>text_view</code></em>.
Tags in the buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>left margin in pixels</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-right-margin"></a><h3>gtk_text_view_set_right_margin ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_right_margin      (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> right_margin</code></em>);</pre>
<p>
Sets the default right margin for text in the text view.
Tags in the buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>right_margin</code></em> :</span></p></td>
<td>right margin in pixels</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-right-margin"></a><h3>gtk_text_view_get_right_margin ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_right_margin      (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the default right margin for text in <em class="parameter"><code>text_view</code></em>. Tags
in the buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>right margin in pixels</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-indent"></a><h3>gtk_text_view_set_indent ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_indent            (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> indent</code></em>);</pre>
<p>
Sets the default indentation for paragraphs in <em class="parameter"><code>text_view</code></em>.
Tags in the buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>indent</code></em> :</span></p></td>
<td>indentation in pixels</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-indent"></a><h3>gtk_text_view_get_indent ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_indent            (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the default indentation of paragraphs in <em class="parameter"><code>text_view</code></em>.
Tags in the view's buffer may override the default.
The indentation may be negative.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>number of pixels of indentation</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-tabs"></a><h3>gtk_text_view_set_tabs ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_tabs              (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../pango/pango-Tab-Stops.html#PangoTabArray"><span class="type">PangoTabArray</span></a> *tabs</code></em>);</pre>
<p>
Sets the default tab stops for paragraphs in <em class="parameter"><code>text_view</code></em>.
Tags in the buffer may override the default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>tabs</code></em> :</span></p></td>
<td>tabs as a <a href="../pango/pango-Tab-Stops.html#PangoTabArray"><span class="type">PangoTabArray</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-tabs"></a><h3>gtk_text_view_get_tabs ()</h3>
<pre class="programlisting"><a href="../pango/pango-Tab-Stops.html#PangoTabArray"><span class="returnvalue">PangoTabArray</span></a> *     gtk_text_view_get_tabs              (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Gets the default tabs for <em class="parameter"><code>text_view</code></em>. Tags in the buffer may
override the defaults. The returned array will be <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
"standard" (8-space) tabs are used. Free the return value
with <a href="../pango/pango-Tab-Stops.html#pango-tab-array-free"><code class="function">pango_tab_array_free()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>copy of default tab array, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if "standard"
tabs are used; must be freed with <a href="../pango/pango-Tab-Stops.html#pango-tab-array-free"><code class="function">pango_tab_array_free()</code></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-set-accepts-tab"></a><h3>gtk_text_view_set_accepts_tab ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_accepts_tab       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> accepts_tab</code></em>);</pre>
<p>
Sets the behavior of the text widget when the Tab key is pressed. 
If <em class="parameter"><code>accepts_tab</code></em> is <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, a tab character is inserted. If <em class="parameter"><code>accepts_tab</code></em> 
is <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> the keyboard focus is moved to the next widget in the focus 
chain.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>accepts_tab</code></em> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if pressing the Tab key should insert a tab
character, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, if pressing the Tab key should move the
keyboard focus.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-accepts-tab"></a><h3>gtk_text_view_get_accepts_tab ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_get_accepts_tab       (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Returns whether pressing the Tab key inserts a tab characters.
<a class="link" href="gtk3-GtkTextView.html#gtk-text-view-set-accepts-tab" title="gtk_text_view_set_accepts_tab ()"><code class="function">gtk_text_view_set_accepts_tab()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if pressing the Tab key inserts a tab character,
<a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if pressing the Tab key moves the keyboard focus.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-get-default-attributes"></a><h3>gtk_text_view_get_default_attributes ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkTextTag.html#GtkTextAttributes" title="struct GtkTextAttributes"><span class="returnvalue">GtkTextAttributes</span></a> * gtk_text_view_get_default_attributes
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Obtains a copy of the default text attributes. These are the
attributes used for text unless a tag overrides them.
You'd typically pass the default attributes in to
<a class="link" href="gtk3-GtkTextIter.html#gtk-text-iter-get-attributes" title="gtk_text_iter_get_attributes ()"><code class="function">gtk_text_iter_get_attributes()</code></a> in order to get the
attributes in effect at a given text position.
</p>
<p>
The return value is a copy owned by the caller of this function,
and should be freed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gtk3-GtkTextTag.html#GtkTextAttributes" title="struct GtkTextAttributes"><span class="type">GtkTextAttributes</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-im-context-filter-keypress"></a><h3>gtk_text_view_im_context_filter_keypress ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_im_context_filter_keypress
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>);</pre>
<p>
Allow the <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> input method to internally handle key press
and release events. If this function returns <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then no further
processing should be done for this key event. See
<a class="link" href="gtk3-GtkIMContext.html#gtk-im-context-filter-keypress" title="gtk_im_context_filter_keypress ()"><code class="function">gtk_im_context_filter_keypress()</code></a>.
</p>
<p>
Note that you are expected to call this function from your handler
when overriding key event handling. This is needed in the case when
you need to insert your own key handling between the input method
and the default key event handling of the <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>.
</p>
<p>
</p>
<div class="informalexample"><pre class="programlisting">
static gboolean
gtk_foo_bar_key_press_event (GtkWidget   *widget,
                             GdkEventKey *event)
{
  if ((key-&gt;keyval == GDK_KEY_Return || key-&gt;keyval == GDK_KEY_KP_Enter))
    {
      if (gtk_text_view_im_context_filter_keypress (GTK_TEXT_VIEW (view), event))
        return TRUE;
    }

    /* Do some stuff */

  return GTK_WIDGET_CLASS (gtk_foo_bar_parent_class)-&gt;key_press_event (widget, event);
}
</pre></div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>event</code></em> :</span></p></td>
<td>the key event</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the input method handled the key event.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-text-view-reset-im-context"></a><h3>gtk_text_view_reset_im_context ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_reset_im_context      (<em class="parameter"><code><a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
<p>
Reset the input method context of the text view if needed.
</p>
<p>
This can be necessary in the case where modifying the buffer
would confuse on-going input method behavior.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-TEXT-VIEW-PRIORITY-VALIDATE:CAPS"></a><h3>GTK_TEXT_VIEW_PRIORITY_VALIDATE</h3>
<pre class="programlisting">#define GTK_TEXT_VIEW_PRIORITY_VALIDATE (GDK_PRIORITY_REDRAW + 5)
</pre>
<p>
The priority at which the text view validates onscreen lines
in an idle job in the background.
</p>
</div>
</div>
<div class="refsect1">
<a name="gtk3-GtkTextView.see-also"></a><h2>See Also</h2>
<a class="link" href="gtk3-GtkTextBuffer.html#GtkTextBuffer" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>, <a class="link" href="gtk3-GtkTextIter.html#GtkTextIter" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>